@import url('https://fonts.googleapis.com/css?family=Tangerine');
@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@300..900&family=Rubik+Broken+Fax&family=Suez+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: "Frank Ruhl Libre", sans-serif;
    font-weight: 600;
}

header{
    position: fixed;
    top: 0px;
    left: -4vw;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: row;
    z-index: 99;
    direction: ltr;
}
body{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url(../img/blue.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    direction: rtl;
}

#logo{
    position: fixed;
    top: 1vw;
    left: 1.5vw;
    z-index: 100;
    width: 10vw;
    height: auto;
    animation: rotate 26s linear infinite;
}

@keyframes rotate {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }

.navigation {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    gap: 40px;
}

.navigation a {
    position: relative;
    font-size: 1.5em;
    color:#fff;
    text-decoration:none;
    font-weight: 500;
}

.navigation a::after {
    content:'';
    position:absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background:#fff ;
    border-radius: 5px;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .5s;
}

.navigation a:hover::after {
    transform-origin: left;
    transform: scaleX(1);
}

.navigation .btnLogin-popup {
    width: 130px;
    height: 50px;
    background: transparent;
    border: 2px solid;
    color: #fff;
    outline: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.4em;
    color: #fff;
    font-weight: 600;
    transition: .5s;
    order: -1;
}

.navigation .btnLogin-popup:hover {
    background:#fff;
    color:rgb(115 87 83);
}

.error-message, .success-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
    min-width: 300px;
    animation: toast 5s ease-in-out forwards;
    border-radius: 15px;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.success-message {
    background-color: rgba(40, 167, 70, 0.445);
    border: 2px solid rgba(2, 255, 61, 0.438);
    border-radius: 15px;
    opacity: 0;
    visibility: hidden;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0);
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: 'Rubik', sans-serif;
    border: 1px solid rgba(58, 131, 97, 0.26);
}

.error-message {
    border: 2px solid rgba(233, 184, 146, 0.35);
    border-radius: 15px;
    background-color: rgba(236, 26, 47, 0.445);
    opacity: 0;
    visibility: hidden;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.295);
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: 'Rubik', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.error-message:hover, .success-message:hover {
    transform: translateX(-50%) translateY(2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

@keyframes toast {
    0% {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
        visibility: visible;
    }
    15% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        visibility: visible;
    }
    85% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
        visibility: visible;
    }
    100% {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
        visibility: hidden;
    }
}